<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" id="formAdd">
                <input type="hidden" id="roleId" name="roleId" value="${data}">
                <div id="menus" style="border:1px solid block;"></div>
                <input type="hidden" lay-submit=""
                       <@shiro.hasPermission name="core/role/index:addRoleMenu">
                        lay-filter="modifyData"
                       </@shiro.hasPermission> id="btnAdd"/>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="/static/plugins/xtree/layui-xtree.js"></script>
<script>
    var fn = {};
    layui.config ({
        base: '/static/' //静态资源所在路径
    }).extend ({
        index: 'lib/index' //主入口模块
    }).use (['index', 'core/role_menu']);
</script>